<template>
<div class="csdn-search search-button" v-on:click="xiu">CSDN</div>
</template>

<script>
export default {
  name: 'csdn-search',
  data () {
    return {
      myData: {
        myUrl: 'https://so.csdn.net/so/search',
        uname: 'q',
        message: 'csdn搜索'
      }
    }
  },
  methods: {
    xiu () {
      this.$emit('pa', this.myData)
    }
  }
}
</script>

<style scoped>
@import "button.css";
.csdn-search{
  color:#ff4d4d;
}
</style>
